#ifndef _H_S_PROTOCOL_SESSION_POINT_H_
#define _H_S_PROTOCOL_SESSION_POINT_H_

#include "../typedefine.h"

namespace QWER
{
	QDLL_EXPORT QSTRUCT SProtocolSessionPoint
	{
	public:
#ifndef _USING_CLI
		SProtocolSessionPoint() {}
#endif
		SProtocolSessionPoint(CONST_REF(SProtocolServer) sAddress, UINT64 qwClientSessionID) :
			m_sAddress(sAddress), m_qwClientSessionID(qwClientSessionID)
		{
		}

		inline CONST_REF(SProtocolServer) GetServer() QCONST_FUNC { return m_sAddress; }
		inline UINT64 GetSession() QCONST_FUNC { return m_qwClientSessionID; }

	private:
		QINIT_ONLY SProtocolServer m_sAddress;
		QINIT_ONLY UINT64 STRUCT_MEMBER_DEFINE(m_qwClientSessionID, 0);
	};
}

#endif
